using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

public class Enemy_quick : Enemy
{
    protected override void InitValue()
    {
        speed = 7;
        fireRate = 3f;
    }

    protected override void OnTriggerExit2D(Collider2D collision)
    {
        if (game.status != Game.Game_Status.Start)
        {
            return;
        }

        Bullet b = collision.gameObject.GetComponent<Bullet>();

        if (b != null)
        {
            if (!b.killer)
            {
                die();
            }
        }
    }
}
